/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array)url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
import request from '@/util/request/request.ts'
const apiCode={}
// 电子保修卡 - 获取保修卡列表
apiCode.getUserCodeList = (data) => request.globalRequest({url:`/mobile/user/code/getUserCodeList`, method:'POST',data,power:2})
// 获取编码扫码详情信息
apiCode.getUserOrderCodeInfo = (data) => request.globalRequest({url:`/mobile/user/code/getUserOrderCodeInfo`, method:'get',data,power:2})
// 电子保修卡 - 根据编码查询
apiCode.getRegisterSecurityCheck = (data) => request.globalRequest({url:`/mobile/user/code/getRegisterSecurityCheck`, method:'get',data,power:2})
// 防伪查询-电子保修卡 - 根据编码ID获取编码-电子保修卡详情
apiCode.getCodeDetail = (codeId) => request.globalRequest({url:`/mobile/user/code/getCodeDetail/`+codeId, method:'get',power:2})
// 获取编码扫码详情信息
apiCode.getUserCodeDetail = (codeId) => request.globalRequest({url:`/mobile/user/code/getUserCodeDetail/`+codeId, method:'get',power:2})
//增加电子保修卡
apiCode.saveUserCodeRegister = (data) => request.globalRequest({url:`/mobile/user/code/saveUserCodeRegister`, method:'post',data,power:2})
// 防伪查询 - 根据编码-仓库编码查询
apiCode.getSecurityCheck = (data) => request.globalRequest({url:`/mobile/user/code/getSecurityCheck`, method:'GET',data,power:2})
export default apiCode